package com.tongfusoft.document.personalCenter.myFavorite.service;

import com.tongfusoft.da.pagehelper.PageInfo;
import com.tongfusoft.document.entity.Docs;
import com.tongfusoft.document.entity.UserFavorites;
import com.tongfusoft.document.entity.Users;

public interface IMyFavoriteService {
	/**
	 * 我的收藏
	 * @param user
	 * @return
	 */
	public PageInfo<Docs> favoriteList(UserFavorites userFavorites,Users user,int pageSize,int pageIndex);
	
	/**
	 * 删除
	 * @param favorites
	 */
	public void deleteUserFavorites(UserFavorites favorites);
	/**
	 * 添加收藏
	 * @param user
	 * @return
	 */
	public void createUserFavorites(UserFavorites favorites,Users user);
	/**
	 * 查询收藏文档
	 * @param favorites
	 * @return
	 */
	public UserFavorites getUserFavorite(UserFavorites favorites);
}
